package com.yaj.myfactorysupport.controller;


import com.yaj.myfactorysupport.service.TmReasonService;
import com.yaj.myfactorysupport.util.RespBean;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wei
 * @since 2021-12-27
 */
@Api(value = "TmReasonController")
@RestController
@RequestMapping("/myfactorysupport/tm-reason")
public class TmReasonController {
    @Autowired
    private TmReasonService tmReasonService;

    @GetMapping(value = "getReasonList")
    public RespBean getReasonList(){
        return tmReasonService.getReasonList();
    }
}

